package com.vogue.supplymall.shop.domain.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * The type Relevance.
 * 关系表-记录用户、商品、店铺的关系
 */
@Entity
@Table(name = "relevance")
public class Relevance extends TendBaseEntity implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 4856592758134210592L;
	/**
     * 源对象类型 1:用户 2:商品 3:店铺
     */
    private Integer originobjtype;
    /**
     * 源id
     */
    private Long originobjid;
    /**
     * 目标对象类型 1:用户 2:商品 3:店铺
     */
    private Integer targetobjtype;
    /**
     * 目标id
     */
    private Long targetobjid;
    /**
     * 目标名称-检索用
     */
    private String targetname;
    /**
     * 1:关注 2:收藏
     */
    private Integer type;
    /**
     * 禁用标志
     */
    private Boolean disabledflag;

    public Integer getOriginobjtype() {
        return originobjtype;
    }

    public void setOriginobjtype(Integer originobjtype) {
        this.originobjtype = originobjtype;
    }

    public Long getOriginobjid() {
        return originobjid;
    }

    public void setOriginobjid(Long originobjid) {
        this.originobjid = originobjid;
    }

    public Integer getTargetobjtype() {
        return targetobjtype;
    }

    public void setTargetobjtype(Integer targetobjtype) {
        this.targetobjtype = targetobjtype;
    }

    public Long getTargetobjid() {
        return targetobjid;
    }

    public void setTargetobjid(Long targetobjid) {
        this.targetobjid = targetobjid;
    }

    public String getTargetname() {
        return targetname;
    }

    public void setTargetname(String targetname) {
        this.targetname = targetname;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Boolean getDisabledflag() {
        return disabledflag;
    }

    public void setDisabledflag(Boolean disabledflag) {
        this.disabledflag = disabledflag;
    }
}